package aop;/**
 * Created by burns.
 *
 * @author <a href="http://www.esoon-soft.com/">burns</a>
 * @date 2020/10/19 17:31
 */

/**
 * @ClassName testProxy
 * @Description TODO
 * @Author Burns
 * @DAte 2020/10/19 17:31
 * @Version 1.0
 **/
public class testProxy {


    public static void main(String[] args){
        HelloService helloService = new HelloServiceImpl();
        HelloService proxy = (HelloService) ProxyBean.getProxyBean(helloService,new MyInterceptor());

        proxy.sayHello("burns");

        System.out.println("\n ++++++++++++++ name is null !! ################ \n");

        proxy.sayHello(null);
    }





}
